<?php

/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/11/30
 * Time: 9:24 AM
 */
class CacheKey
{
    //所有部门
    const DEPART_ALL = 'KEY_DEPART_ALL';
    // 所有商品分类
    const CATEGORY_ALL = 'KEY_CATEGORY_ALL';

    // 商品总数量
    const GOODS_TOTAL_NUM = 'KEY_GOODS_TOTAL_NUM';


    public static function goodsInfo($goodsId)
    {
        return sprintf('KEY_GOODS_INFO-%d', $goodsId);
    }
}